package rsp

import (
	"github.com/gin-gonic/gin"
	"github.com/itstonight/ziyue/models"
)

func LoginResponse(ctx *gin.Context, token *models.Token) {
	Success(ctx, gin.H{
		"user":  token.User.ToResponse(),
		"token": token.Token,
	})
}
